#include "../../include/PageLibPreprocessor.h"

PageLibPreprocessor* PageLibPreprocessor::_pInstance = getInstance();
PageLibPreprocessor::AutoRelease PageLibPreprocessor::_ar;

void PageLibPreprocessor::getSimHasher(const string &str, size_t topN, uint64_t &u64) {
    _simhasher.make(str, topN, u64);
}

bool PageLibPreprocessor::isSame(const uint64_t &lhs, const uint64_t &rhs, unsigned short threshold) {
    return _simhasher.isEqual(lhs, rhs, threshold);
}